﻿@{
    ViewBag.Title = "Test";
}

<h2>Test</h2>
<script type="text/javascript">
    $(document).ready(function () {
        var data = 9;
        $.ajax({
            url: '/home/outdata/',
            type: 'POST',
            data: 'name=' + data,
            dataType: 'json',
            success: function (result) {
                for (var i = 0; i < result.length; i++)
                $('#trungnh').append(i+' ,');
                //alert(result);
            }
        });

    });
</script>
<div id="trungnh">
</div>
